package com.zb.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zb.entity.ZjStoreInbound;
import com.zb.mapper.ZjStoreInboundMapper;
import com.zb.service.ZjStoreInboundService;
import com.zb.vo.StoreOutboundListSelectVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 入库表 服务实现类
 * </p>
 *
 * @author WEN
 * @since 2024-01-12
 */
@Service
public class ZjStoreInboundServiceImpl extends ServiceImpl<ZjStoreInboundMapper, ZjStoreInbound> implements ZjStoreInboundService {
    @Resource
    private ZjStoreInboundMapper storeInboundMapper;

    // 获取入库列表
    @Override
    public List<ZjStoreInbound> getList(Long custAccId, StoreOutboundListSelectVo selectVo) {
        return storeInboundMapper.getList(custAccId, selectVo);
    }

    // 获取入库列表总记录数
    @Override
    public long getListCount(Long custAccId, StoreOutboundListSelectVo selectVo) {
        return storeInboundMapper.getListCount(custAccId, selectVo);
    }

    // 获取仓库列表本月的入库的数量
    @Override
    public long getListCurrentMothInWidthOutStoreQty(Long custAccId) {
        return storeInboundMapper.getListCurrentMothInWidthOutStoreQty(custAccId);
    }

    // 根据删除的入库类型ID获取关联入库单的类型ID
    @Override
    public List<Long> getTypeIdByDelTypeIds(List<Long> delTypeIds) {
        return storeInboundMapper.getTypeIdByDelTypeIds(delTypeIds);
    }
}
